I don't think this function is necessary either, it can also be handled properly in `getImageInfo()`