Fix a bug that stopped images being rotated. $$this changed to $this

Fix a bug that stopped images being rotated. $$this changed to $this