Make image resizing working in rhel 6.4.