Added the abiltiy to share pics
Cleaned up code