Resize bigger than 1024x768 images to half their size