thumbnail generation cleanup, attempt to preserve icc_profile
photo sets, better tags, unique indexes
skip thumbnail gen if exists, add option to regen
sql cleanup
template changes