add more logging when image conversion fail

increase safe width and height