added image utils power of two calculations