public void render(Graphics g) {
        if (image != null && !isDirty) {
            int xPos = projectileManager.mapToPanelX(mapX);
            int yPos = projectileManager.mapToPanelY(mapY);

            //flip the yPos since drawing happens top down versus bottom up
            yPos = projectileManager.getPHeight() - yPos;

            //subtract the block height since points are bottom left and drawing starts from top left
            yPos -= height;

            xPos -= (image.getHeight() / 2);
            yPos += (image.getHeight() / 2);
            g.drawImage(image, xPos, yPos, null);

            /*
             * xPos = projectileManager.mapToPanelX(start.x); yPos =
             * projectileManager.mapToPanelY(start.y); yPos =
             * projectileManager.getPHeight() - yPos;
             *
             * int xPos2 = projectileManager.mapToPanelX(end.x); int yPos2 =
             * projectileManager.mapToPanelY(end.y); yPos2 =
             * projectileManager.getPHeight() - yPos2;
             *
             *
             * g.setColor(Color.red); g.drawLine(xPos, yPos, xPos2, yPos2);
             */


            /*
             * xPos = projectileManager.mapToPanelX(start.x); yPos =
             * projectileManager.mapToPanelY(start.y);
             *
             * //flip the yPos since drawing happens top down versus bottom up
             * yPos = projectileManager.getPHeight() - yPos;
             *
             * //subtract the block height since points are bottom left and
             * drawing starts from top left yPos -= height;
             * g.setColor(Color.yellow); g.drawRect(xPos - 1, yPos - 1, 2, 2);
             *
             *
             * xPos = projectileManager.mapToPanelX(end.x); yPos =
             * projectileManager.mapToPanelY(end.y);
             *
             * //flip the yPos since drawing happens top down versus bottom up
             * yPos = projectileManager.getPHeight() - yPos;
             *
             * //subtract the block height since points are bottom left and
             * drawing starts from top left yPos -= height;
             * g.setColor(Color.red); g.drawRect(xPos - 1, yPos - 1, 2, 2);
             */
        }
    }