fixing display of rotated images on ajax calls from management pages