Throw a runtime exception it imagecreate fails
Rename Picture method getData to getTemplateData
Catch exceptions in Controller::addImageToTemplate() and Image::get() for backwards compatibility
Add missing rawurldecode