Move image buffer allocation to retro_init