Increased jpg resolution and fixed the image rotation issue