Index: applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerAbstract.java
===================================================================
--- applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerAbstract.java	(revision 18408)
+++ applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerAbstract.java	(revision 18597)
@@ -37,7 +37,8 @@
 import javax.swing.JSeparator;
 
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.Bounds;
 import org.openstreetmap.josm.data.coor.EastNorth;
 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.gui.MapView;
 import org.openstreetmap.josm.gui.layer.Layer;
@@ -70,5 +71,5 @@
     // Layer icon
     private Icon m_layericon = null;
-    
+
     // Keys for saving in Properties
     private final String INITIAL_POS_X = "INITIAL_POS_X";
@@ -186,7 +187,7 @@
 
     @Override
-    public void paint(Graphics arg0, MapView arg1) {
-
-        if ( m_image != null && arg0 instanceof Graphics2D) {
+    public void paint(Graphics2D g2, MapView mv, Bounds bounds) {
+
+        if ( m_image != null && g2 instanceof Graphics2D) {
 
             // Position image at the right graphical place
@@ -200,5 +201,5 @@
 
             // Let's use Graphics 2D
-            Graphics2D g = (Graphics2D)arg0.create();
+            Graphics2D g = (Graphics2D)g2.create();
             // Move
             g.translate( pic_offset_x, pic_offset_y );
@@ -294,5 +295,5 @@
     	props.put(ANGLE, "" + m_angle);
     }
-    
+
     /**
      * Loads calibration data from properties structure
