Use weight == 0 instead of int == double when deciding to copy pixel When interpolating width, do it by column, not row