* (bug 2780) Fix thumbnail generation with GD for new image schema