lock pixel or inch dimensions fixes #452