Add getObjSize for Image and File types