add rule to image upload