Hello,
I have a good background in image processing. I can analyze your png files and using OpenCV (I can use PHP to drive the OpenCV code, but this will be in C++), detect the position of the black rectangle, copy what is inside this in a another png file.
Thanks and let me know if you are interested to work with me,
Paul