Fixes bugs in product image display