Fix : Documents with images threw error