bug fix for the picture tags