resize images to compatible with iPhone 5