Resize image size to 256x512 pixels for better quality