fixed x not being found in draw image