Add toBlob function to Picture