```python
def setup():
# to load images from the web, use `request_image` instead
img = py5.load_image('http://py5coding.org/files/apples.jpg')
py5.image_mode(py5.CORNERS)
py5.image(img, 10, 10, py5.width - 10, py5.height - 10)
def key_pressed():
py5.print_line_profiler_stats()
py5.profile_functions(['setup'])
py5.run_sketch()
```