Downsize the bitmap to at most the indicated ratio of the max specified size @param bm Bitmap to resize @param maxX pixels of max width @param maxY pixels of max height @param maxRatio The max ratio wrt the display size @return the new bitmap, OR input bitmap if no change needed
(Bitmap bm, int maxX, int maxY, double maxRatio)