Fix name incompatibilities and syntax errors

Added line to generate image to paste on