EDIT: I bypassed the problem by adding a 2-bit frame to the image, then using my code, and finally cropping the image to delete the extra frame. It is an ugly solution, but it works! I bypassed the problem by adding a 2-bit
EDIT: I bypassed the problem by adding a 2-bit frame to the image, then using my code, and finally cropping the image to delete the extra frame. It is an ugly solution, but it works! I bypassed the problem by adding a 2-bit