For better handling of some formats, perform rotation with help of Graphics2D