Feature: Image resize modes as constants

Pullrequest for feature #7299