'Save the file in the cache area, and return the path to this file'

@staticmethod
def storeCachedFile(filename, image):

    path = 'applications'
    chartFile = ('%s/%s.png' % (S3Chart.CACHE_PATH, filename))
    fullPath = ('%s%s' % (path, chartFile))
    try:
        f = open(fullPath, 'w+')
        print >>f, image
    except:
        return None
    return chartFile
