Add missing getImageClass method

fixes #1