Thanks Craig - this is the first example that actually works.
However - I still have problems with the rotated image - it seems as if it is rotated around the wrong anchor - I still get the black additions on one side of the image, and it is cut on the other side.
I used either this code:
or this one:
but I still could not create the rotated instance correct...