I want to reduce an image to a certain size. If I take a landscape format picture everything is correct. But when I take a portrait picture it is always rotated. So converte