fix bug in view for adverts with images