Add image rotation support