Out of memory exception on rotate of images