image validation for userg images