found and fixed all known bugs and memory issues. scaled and absolute resolutions work. centers image around 0,0,0.