Fixed bug where IE 8 would throw an error when populating image size in image dialog.