automatically zero rotation and remove thumbnails on jpeg images