fixing extension of picture