this change is not valid. it should be (double)(ing_size.width/4), (double)(img_size.height/4)