Fixed some major efficiency issues as well as how image/message complexity is calculated