Changed approach. Resize canvas based on pixel cube side and gap between cubes