Added trait for some image procession methods which need to be used in several places