Disabling buttons when no image is available