Fixed rotation again. Additionally, the fetched image size is now stored if the database is stored.