Fix AttributeError caused by editing a basic tile and not populating the image field.

Currently if you edit a basic tile without setting an image you get an attribute error on save because the test for the image in the template occurs after the tal:define that gets the ImageScaling view. This pull request fixes that.
changelog entries on top, please