Image space approach to penalty methods