Fixed Image->resolveFilename(), wrong id was used