Refactor: Moved most image loading logics to image.h/cpp