Use this extension to convert you component the horizontal/vertical arrangement to image
And then upload that image to database
Extension :- Create Images of Components and Screens | [FREE] Extension ComponentToImage
I think this should work 100%
D.V.