Upgraded images database to accomodate syncing
Added code to sync images, UNTESTED