Compresses profile image to the correct size