added the ~img feature