bug fixes in image_tag and form