use localStorage to persist image URL and additional atributes