Did some sanity checking with different input images to verify port further.