Open image using context manager