fixed unique image filenames and post_modified
merge
more logging. more stable locking. does not make image dupes.