Added error messages to galleries and images