Fixed image shirinking problem.

If the greatestCommonDivisor is 1, every time `setAspectRatio` function gets called, width & height in aspect_ratio_ decreases. As a result, rqt_image_view shrinks the image as the times goes. This is one approach to prevent such problem.