Now closing the file stream correctly when loading an image without scaling.