Add image for view detail, implementing show, fixed sql