Added print commands for debugging in CreateImage, changed Map output
value.