test image class