Added error messages
Added error messages to galleries and images