fixed image processing, it finally works! \o/