Added more validation to CRUD operations in Images Controller