Joining different display objects?

I am experimenting with physics in corona using simple objects. One problem i ran into was using a function to attach objects using physics. How can i attach objects while making sure that they dont get seperated? 

I want it to look like what it shows in the image. Here is the code on which i am working on.

display.setStatusBar(display.HiddenStatusBar) -- require libraries and set orientation variables local physics = require( "physics" ) physics:start() physics.setDrawMode( "hybrid" ) physics.setGravity( 0, 0 ) screenWidth = display.contentWidth screenHeight = display.contentHeight centerX = screenWidth \* 0.5 centerY = screenHeight \* 0.5 -- put images on screen local background = display.newImageRect( "images/blood.png", 1280, 720 ) local whiteCell01 = display.newImageRect( "images/wbc.png", 50, 50 ) whiteCell01.x = centerX whiteCell01.y = centerY physics.addBody( whiteCell01, "dynamic", {density=3, friction=0.5, bounce=2.5, radius = 26 } ) local whiteCell02 = display.newImageRect( "images/wbc.png", 50, 50 ) whiteCell02.x = centerX + 100 whiteCell02.y = centerY physics.addBody( whiteCell02, "dynamic", {density=3, friction=0.5, bounce=2.5, radius = 26 } ) local whiteCell03 = display.newImageRect( "images/wbc.png", 50, 50 ) whiteCell03.x = centerX whiteCell03.y = centerY + 100 physics.addBody( whiteCell03, "dynamic", {density=3, friction=0.5, bounce=2.5, radius = 26 } ) -- functions for the game stage local function wbcTouched(event) -- touch event local obj = event.target if event.phase == "began" then display.getCurrentStage():setFocus(obj) obj.startMoveX = obj.x obj.startMoveY = obj.y elseif event.phase == "moved" then obj.x = (event.x - event.xStart) + obj.startMoveX obj.y = (event.y - event.yStart) + obj.startMoveY --obj.x=event.x; obj.y=event.y elseif event.phase == "ended" or event.phase == "cancelled" then display.getCurrentStage():setFocus(nil) end return true end whiteCell01:addEventListener( "touch", wbcTouched ) whiteCell02:addEventListener( "touch", wbcTouched ) whiteCell03:addEventListener( "touch", wbcTouched ) --myJoint = physics.newJoint( "weld", weldObjects (obj1, obj2), weldCoordinates(x, y) )