of course you need a fitness function; why not pixel by pixel comparison of the rendered output?
sum( abs(X_expected - X_actual) *
abs(Width_expected - Width_actual) +
abs(Y_expected - Y_actual) *
abs(Height_expected - Height_actual) )
mapped over all elements ought to do the trick. When you hit 0, it's a perfect reproduction.I thought about trying to do MCMC over a beam search through the rnn output, but ran out of time and patience.