I'm trying to arc an image upwards using the command line. According to this page the way to do that is to rotate the image 180 degrees first, then arc it and rotate it back. However when I do that I get the resulting image:

Does anybody have any insight into what is going wrong/how to fix it?