Added function for check src image type.