convert img to rgb if is not