force a unique index into picture filenames. closes #52