fix image style and path resolution