init image class