image mapper constructor