Fixed Image memory leak.

When creating a QImage from uchar* data, one must pass a cleanup
function and a pointer to the data to delete.