make input fields for images only accept images