handle images locally