Don't ask wrong questions based on implementations, ask right questions based on use case, business model, requirements. What are you trying to do?
Do you need to build a some kind of simple online banner creator/editor where user can:
Or do you just need to do the same without 1.step from your code/CLI?
You also may look into SVG solution since it is better for banners.