resolves #6 and almost implemented image maps