move available_* functions into image class