work on image class