{:src => self.url, :width => tw, :height => th}
end
+ def unpublished?
+ self.pictures.empty?
+ end
+
+ def stopped?
+ self.pictures.any? and self.resource_picture == nil
+ end
+
+ def unlicensed?
+ self.pictures.any? and self.resource_picture and self.updated_at > self.pictures.first.head.updated_at
+ end
+
+ def published?
+ self.pictures.any? and self.resource_picture and self.updated_at < self.pictures.first.head.updated_at
+ end
+
def self.default_page_size
25
end