JDK7 support for image resizing