added wallImage.onload function and a few missing semicolons