fix image filename to be tied to output file name, not page file name