correcting extension of db image