adding parent and fixing aspect-correct resize