Cleaned up unused methods and some compiler warnings in ImageHelper.java