Updated image class to extend file