Set auto rotate to true for loading images with file.