1 - Initialize the output device before the input image and derive the viewport
 
   2   height from the output device native resolution.
 
   4 - Check if the image height is at least two times the viewport height.
 
   6 - For width, check if the image width less than or equal to the viewport