background-estimation Recreation of getimages algorithm for background estimation in astronomical images