resize texture to max 1280x1024