getImageFromClass