Some improvements.  Finally got the first non-empty image.  It still isn't correct, but it's closer.