added image rendering, slightly fixed movement code