def halfAndCopy():

  # Ask for the media folder
  setMediaPath()

  # Get the square sized flower picture and show it
  sourceFile = 'flower400x400.jpg'
  sourceFullName = getMediaPath(sourceFile)
  print sourceFullName
  sourcePict = makePicture(sourceFullName)
  show(sourcePict)

  # Get an empty 400x200 picture and show it
  targetPict = makeEmptyPicture(400,200)
  show(targetPict)

  # Scale the picture and copy into left side of the empty picture
  sourceX = 1
  for targetX in range(1, getWidth(sourcePict)/2+1):
    sourceY = 1
    for targetY in range(1, getHeight(sourcePict)/2+1):
      color = getColor(getPixel(sourcePict, sourceX, sourceY))
      setColor(getPixel(targetPict, targetX, targetY), color)
      sourceY = sourceY + 2
    sourceX = sourceX + 2

    repaint(targetPict)

  return targetPict

