Image: Replace direct undefined check with safe one.
Image, HTML5/Flash: Rename resize method to downsize.

Name resize was quite confusing, since it didn't reflect the purpose
and the point of the procedure itself, downsize - fits much better.