Implemented validation for image using the required attribute. closes #1...

...12