(PSP) Refactor init_texture