Use classes to detect if images are already done.

The classes are added after processing, asynchronously,
not after the Ajax call is finished. This prevents
the plugin from processing the same element twice
while the previous call is still running.