changed drawplane drawImage to accept image, sx, sy only.  added loading state to main.js that waits until image is loaded