Get image thumbnail buffer.