Refactor ImageDataLayer to use DataTransformer