Free input image only if not a GUI (fixed problems setting film size and
mix const)