Added default values for fitWidth and fitHeight