A bit less error prone (regarding URL separators): `URL.codeBase.withFilename('media/NSTexturedBackgroundColor.jpg')`