Removed dispose and cleaned bufferedimages instead.