removes use of proprietary com.sun package classes in ImageWorker

Using these com.sun classes causes compiler warnings in JDK 7, also they may not be available in other JVM implementations

see: https://jira.codehaus.org/browse/GEOT-4497