fix nearest neighbour resizer
fix center for bilinear resize
fix resize code