disabling checkbox before image is loaded