changing Image to a class fixed compiler error

Thanks to Andy Dirnberger for the suggestion.