Imported stuff from whiterspace (for image & flash).