¿Obtener el ancho y alto real de una imagen con JavaScript? (en Safari / Chrome)

Estoy creando un complemento jQuery.

¿Cómo obtengo el ancho y la altura de la imagen real con Javascript en Safari?

Los siguientes trabajos con Firefox 3, IE7 y Opera 9:

var pic = $("img")

// need to remove these in of case img-element has set width and height
pic.removeAttr("width"); 
pic.removeAttr("height");

var pic_real_width = pic.width();
var pic_real_height = pic.height();

Pero en los navegadores Webkit como Safari y Google Chrome los valores son 0.

Respuestas a la pregunta(30)

Su respuesta a la pregunta