remove call by reference as it is not appropriate nor as other image types