adding something to fix device saving pictures