Added photometry processing library for functions that could be used multiple times, altered icoords to use this library