These sites host images with varying license agreements. You must read their terms carefully and/or contact the copyright holder to obtain permission to use their images. Creative Commons licenses must be inspected - there are different types, it does not automatically mean “Public Domain”.