Improved thumb creation and fixed wrong sizes after EXIF rotation