fix bug that prevented saving new product with an image