Revert "Revert "fix theme preview images not shown on edit page""

This reverts commit 2a1cfb8007bc9256fdd5cb4c29bcba684f189f6b.