remove useless args from image function