A software package for doing photometry with DSLRs