added reg_with_pic module