Added option to defer image loading