Add filter to get the image extension's image classes

There should be a filter which allows user to filter classes for their
needs on some special cases where either built in classes applied to
image causes issue or user (dev) want to add / remove some special
class(es) based on its custom post type or similar situations.