getOutputMediaFile() should be called in a static context