rename JPG -> jpg and rm blank
simplify code