adds image switching to itemDetail