[added] implemented mainfun_photo rendering