Changed a little bit a way how to rotate png.