Ported the ImageFactory to Scala
Removed Java ImageFactory