add XML option of storing image inside XML