Write more semantical code instead of macro-optimizing stuff
Still more things to do..
Move sending the websocket notifications of updated images to observer
this will hopefully fix a race-condition where displays get the notification before the new image is available.