chaning to photutils methods