'Find the image based on its name.'

def _get_image_filename(self, image):

    basedir = os.path.join(rcParams[u'datapath'], u'images')
    if (image is not None):
        fname = os.path.join(basedir, image)
    else:
        fname = None
    return fname
