Constraining a modified gravity theory in strong gravitational lensing and black hole shadow observations