added compressed image class