add client side validation for image
old uncommited changes - can't remeber