Opt your images into responsive behavior (so they never become larger than their parent elements) and add lightweight styles to them—all via classes.
Responsive images

APEX Documentation
Template Option: Responsive |
---|
Template Option | Comment |
---|
Responsive | |
APEX Documentation
Field Template Option Group: Field Img Style |
---|
Template Option | Comment |
---|
Rounded | |
Circle | |
Thumbnail | |