Fix cursor warning

GPUImage.getImageOrientation() (which is called internally) produces a "cursor not closed before finalizing" warning. This should fix it.