improve example by using load-images module