issue #25: add performBefore function skeleton so show some spinning loading icon when attempt to load pics, set local storage for development and amazon s3 for production storage