Fix map move pixels function

Thanks to @dalkon for this.