added custom validation logic to whole project, also added image resolution validation for gallery images