chore :: add validation for image extensions