Save images to local storage and implement separate gallery UI