rotate pics properly