Adding a Class to an Getting From Post Content

Most likely your images outputted to the_content() were added manually via the Media button in the admin. You should be able to add your own class from that point. The default class are added by the WP system when choosing alignment, etc in the Insert Media modal.

enter image description here