Changed tile_size to float in order to preserve calculations