refactored to use resourecs :pictures