You could refactor some of that code to genericall...
# tornadofx
e
You could refactor some of that code to generically deal with images perhaps.