Helper methods for checking colorspace