Trying to get processing.js to work smoothly with images