fix cursor in image problem