generalized some image dimension¨s