get image extensions from original filename
dont add repeated items to history