Add gallery image thumbnail generation