Adding scopes to Picture model and and defining class method for createed before