Change product image code to adapt to images