Display error messages for images and galleries

*Add validation to images
*Replace hardcode paths with objects
*Add partial for error messages