def METHOD_NAME(params_filename, params=None, input_filename=None):
    image = FlashBuilder.create_params_image(params=params, filename=input_filename)
    with open(params_filename, "wb") as output_fd:
        output_fd.write(image)