added image and mouse input traking