refactored api and add polaroid style