correctly inserts image