if no extension, save as png