Changed getData() method in Img class to perform correct brick division