Move IMGFMT define to config; check and set default in init
Fix/Update edit_title to use array object
Re-add random parameter to preview function to ensure cache is busted