new record pictures refactored because of new upload directive