frame resizes based on picture