Added a very basic image attribute for use on pages. Need to add some mime type checking.
Required a few changes to the editing logic and the media module.