diff --git a/lib/OpenLayers/Icon.js b/lib/OpenLayers/Icon.js
index <HASH>..<HASH> 100644
--- a/lib/OpenLayers/Icon.js
+++ b/lib/OpenLayers/Icon.js
@@ -68,8 +68,8 @@ OpenLayers.Icon = OpenLayers.Class({
      */
     initialize: function(url, size, offset, calculateOffset) {
         this.url = url;
-        this.size = (size) ? size : new OpenLayers.Size(20,20);
-        this.offset = offset ? offset : new OpenLayers.Pixel(-(this.size.w/2), -(this.size.h/2));
+        this.size = size || {w: 20, h: 20};
+        this.offset = offset || {x: -(this.size.w/2), y: -(this.size.h/2)};
         this.calculateOffset = calculateOffset;
 
         var id = OpenLayers.Util.createUniqueID("OL_Icon_");
Icon: use simple ojects for size and offset