Added support for multiple callbacks in images plugin