image rotation
thumbnail handling improved