fix bugs in edit product and image