Fixed issue where photos were not correctly scaled and animated when device was roteted