It would depend on your data protection and query requirements. If you are storing other people's images, then data protection requirement is a must – to be on the right side of the law (in some countries). Also database provides facilities for querying the image.