add extensions to input photom filed