convert an image to 300DPI