adding a relative patch for images