added isImageAvailable method