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

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

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

            g.drawImage(image, xPos, yPos, null);
        }
    }