added dynamic paths for pictures using params