Working on image access function and ajax image populate calls. All in a bad state for this commit. get_pic() looks OK now but need a refactor.