Added support to save/load patterns
At least the image, id and title