Fix for ImageParsing issue

Bad parsing in toImage caused tags for CPU and Memory to be improperly
set.