I restored my confluence test instance with production data and now all images are missing. I checked the attachment storage. It was Filesystem:
C:\Program Files\Atlassian\Application Data\Confluence\attachments in test system. Went to test syetm and found that it is 0 kb. So I manually copied the data from the same place in prod and placed it onto test and restarted the test system. Still did not help