diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index ffc6bcb..12349f5 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -393,7 +393,7 @@ EOF
end
def self.status_img(status)
- path = "#{File.dirname(File.dirname(__FILE__))}/share/icon/64x64/status_#{status}.png"
+ path = "#{Rbpkg.dir}/share/icon/64x64/status_#{status}.png"
file = File.read(path)
base64 = Base64.encode64(file)
"data:image/png;base64,#{base64}"