add gray function to smartimageview