Logic for preview added for text and picture panels. Background pictures don't properly load.