How to retrieve image from database in java using hibernate