error hanlding; write to local disk rather than flickr