wraps the apply in a callback
injects the images dependency for the grid