<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -91,6 +91,10 @@ module Fleximage
           end
         end
         
+        def self.has_store?
+          db_store? || image_directory
+        end
+        
         # validation callback
         validate :validate_image
         
@@ -327,14 +331,18 @@ module Fleximage
         return @output_image if @output_image
         
         # Load the image from disk
-        if self.class.db_store?
-          if image_file_data &amp;&amp; image_file_data.any?
-            @output_image = Magick::Image.from_blob(image_file_data).first
+        if self.class.has_store?
+          if self.class.db_store?
+            if image_file_data &amp;&amp; image_file_data.any?
+              @output_image = Magick::Image.from_blob(image_file_data).first
+            else
+              master_image_not_found
+            end
           else
-            master_image_not_found
+            @output_image = Magick::Image.read(file_path).first
           end
         else
-          @output_image = Magick::Image.read(file_path).first
+          master_image_not_found
         end
         
       rescue Magick::ImageMagickError =&gt; e</diff>
      <filename>lib/fleximage/model.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9b1d211b20a57df6bad04c272181182641071006</id>
    </parent>
  </parents>
  <author>
    <name>Alex Wayne</name>
    <email>alex@beautifulpixel.com</email>
  </author>
  <url>http://github.com/Squeegy/fleximage/commit/fe563024079feda6f0406f6917cf265dd7657201</url>
  <id>fe563024079feda6f0406f6917cf265dd7657201</id>
  <committed-date>2008-05-31T13:53:10-07:00</committed-date>
  <authored-date>2008-05-31T13:53:10-07:00</authored-date>
  <message>Fixed that image would initially try to load from a file even if no image_directory was declared.</message>
  <tree>7d6e42eb8968835bfeb8423d90347a2d8b949f76</tree>
  <committer>
    <name>Alex Wayne</name>
    <email>alex@beautifulpixel.com</email>
  </committer>
</commit>
