Replaced the massive case statement in ImageHelper

replaced with a dictionary class, based on a hash. In the future the definitions can be moved out to a file.