add support for lazy loaded images