Get mark primary and fixed bug of image orientation in preview by using sorl's thumbnail