Use natural height/width instead of apparent dimensions. Also repeat on future load events in case the image src changes.