it seems you don't need the self.resolution_ but just the self.resolution

remove the self.resolution_ attribute and just rely on self.resolution