Add validation for images because image ID is saved in DB even after removing it in th CF