fix cursor overlaying picture problem.