take weight from the middle of pixel