Update Image.scala

fixed assert