Added image rotation and direct image access