Fixed bug when writing actor image to file with no image defined for
that actor