if you just use function imageSizeFillScreen() instead of assigning an anonymous function to a variable, you get better debugging output and stack traces.  I've never understood this var f = function() {}; idiom, and almost always prefer ordinary function statements.