Updated product factory attach image method to use upload factory.