Fixed error on trying to merge a line with an image.