Fixed *Problem with save image on Mac osX systems caused by a jre bug.*