Resize and compress profile image.