reformat log output
fix bug in the image size calculation when ratio >1