added code to support fluid images